package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    public User findByUsername(String username);

    User findByTelephone(String telephone);

    void changPwd(Map map);

    String getAvatarByUsername(String username);

    void chgAvatarByUsername(Map map);

    Page<User> findPage(String queryString);

    List<String> findAllImg();

    void add(User user);

    void setUserAndRole(Map<String, Integer> map);

    User findByUserId(Integer id);

    void deleteUserAndRoleById(Integer userId);

    void edit(User user);

    void deleteById(Integer id);

    List<Role> findRoleByUserId(Integer id);

    void updateStation(Map map);
}
